package day01_homework;

import java.util.Scanner;

public class Test05 {
    public static void main(String[] args) {
        System.out.println("请输入网址:");
        Scanner sc = new Scanner(System.in);
        String url = sc.nextLine();
        //System.out.println(url);
        int start = url.indexOf(".") + 1;
        //System.out.println(start);
        int end = url.indexOf(".", start);
        //System.out.println(end);
        String name = url.substring(start, end);
        //System.out.println(name);
        if (name.equals("baidu")) {
            System.out.println("百度");
        } else if (name.equals("tedu")) {
            System.out.println("达内");
        } else {
            System.out.println("其他");
        }
    }
}
